package com.vvkee.listener;

import com.vvkee.event.OrderCreateEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

@Component
public class WechatListener implements ApplicationListener<OrderCreateEvent> {

    @Override
    public void onApplicationEvent(OrderCreateEvent orderCreateEvent) {
        System.out.println("WECHAT: " + orderCreateEvent.getName());
    }
}
